package org.bonorsoft.modules.education.service;

import org.bonorsoft.modules.education.entity.EduInfor;
import com.baomidou.mybatisplus.extension.service.IService;
import org.bonorsoft.modules.statistical.entity.AllSchoolVo;
import org.bonorsoft.modules.statistical.entity.FiveSchoolVo;
import org.bonorsoft.modules.statistical.entity.TotalInfo;
import org.bonorsoft.modules.statistical.out.OutTotalInfo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;

/**
 * @Description: 全市学校信息表
 * @Author: WilliamYe
 * @Date:   2020-11-23
 * @Version: V1.0
 */
public interface IEduInforService extends IService<EduInfor> {


    TotalInfo getStaticInfo(Integer year, String type);

    AllSchoolVo getAllInformation(Integer year, String type);

    List<Map<String, Object>> getSubjectTeachers(Integer year, String type);

    FiveSchoolVo getFiveStudent(String type);

    Map<String, Object> getTeacherStudentRatio(Integer year);

    /**
     * 测试多线程
     * @param user
     * @return
     */
    CompletableFuture<String> findUser(String user) throws InterruptedException;
}
